<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/mytable/jrtable/canteen_yd_dxs.js此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/mytable/jrtable/canteen_yd_dxs.js";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'canteen_yd_dxs_id',
                footer: "Foots",
                cnName: '就餐预约(通用)',
                name: 'jrtable/canteen_yd_dxs',
                url: "/canteen_yd_dxs/",
                sortName: "CreateDate"
            });
            const editFormFields = ref({});
            const editFormOptions = ref([]);
            const searchFormFields = ref({"xname":""});
            const searchFormOptions = ref([[{"title":"姓名","field":"xname"}]]);
            const columns = ref([{field:'canteen_yd_dxs_id',title:'食堂预定_大学生',type:'guid',link:true,width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'department',title:'所属部门',type:'string',width:220,hidden:true,align:'left'},
                       {field:'xname',title:'姓名',type:'string',width:220,align:'left',sort:true},
                       {field:'ipaddress',title:'IP地址',type:'string',width:220,align:'left'},
                       {field:'CreateDate',title:'填报时间',type:'datetime',width:150,align:'left',sort:true},
                       {field:'yd_date',title:'预约就餐日期',type:'date',width:150,hidden:true,align:'left',sort:true},
                       {field:'zao6_c',title:'周6早餐',type:'int',width:80,align:'left'},
                       {field:'wu6_c',title:'周6午餐',type:'int',width:80,align:'left'},
                       {field:'wan6_c',title:'周6晚餐',type:'int',width:80,align:'left'},
                       {field:'zao7_c',title:'周日早餐',type:'int',width:80,align:'left'},
                       {field:'wu7_c',title:'周日午餐',type:'int',width:80,align:'left'},
                       {field:'wan7_c',title:'周日晚餐',type:'int',width:80,align:'left'}]);
            const detail = ref({
                cnName: "#detailCnName",
                table: "#detailTable",
                columns: [],
                sortName: "",
                key: ""
            });
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
            };
        },
    });
</script>
